#!/bin/bash
## expect work_dir=tests/demo/temp/tasks/test
echo "work_dir=$PWD"
echo 'test file ok' > 'test_file.txt'
cat test_file.txt
env_at_local=env_at_local_ok
echo "env_at_local=$env_at_local"
## EXPORT env_at_local

## @test-ssh-2222
echo 'server ok'
if [ $env_at_local != 'env_at_local_ok' ]; then
    exit 1
fi
## PUT test_file.txt /tinyops_test_file.txt
cat /tinyops_test_file.txt
## GET /tinyops_test_file.txt local_server_test_file.txt
## @local
cat local_server_test_file.txt

## @docker+alpine:3.8
echo 'docker ok'
## PUT test_file.txt /tinyops_test_file.txt
cat /tinyops_test_file.txt
## GET /tinyops_test_file.txt local_docker_test_file.txt
## @local
cat local_docker_test_file.txt

## NOTIFY test notify
echo 'test ok'
